home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d7 / cis.slt < prev    next >
Text File  |  1991-08-04  |  1KB  |  43 lines

  1. // CIS.SLT
  2.  
  3. // This is a sample script for logging on to CIS. It doesn't have to be
  4. // this complicated, but this version can handle some strange timing.
  5.  
  6. str user_id[] = "xxxxx,xxxx";       // Your user I.D. number
  7. str password[] = "xxxxxxxxx";       // Your password
  8.  
  9. // Put your user id and password in the above lines instead of the 'x's
  10. // Before using this script for the first time, or when you make a change,
  11. // type 'cs cis' at the DOS prompt to compile the script for use by Telix.
  12.  
  13. main()
  14.  
  15. {
  16.  int n = 0;
  17.  
  18.  alarm(1);
  19.  
  20.  while (n < 5)      // loop up to 5 times to send the Ctrl-C
  21.   {
  22.    delay(25);
  23.    cputc('^C');
  24.  
  25.    if (waitfor("User ID:", 7))
  26.     break;
  27.   }
  28.  
  29.  if (n >= 5)
  30.   {
  31.    hangup();
  32.    return;
  33.   }
  34.  
  35.  cputs(user_id);                  // send user id
  36.  cputs("^M");                     //   and Carriage Return
  37.  
  38.  waitfor("Password:", 15);
  39.  cputs(password);                 // send password
  40.  cputs("^M");                     //   and Carriage Return
  41.  
  42. }
  43.